<?php
/**
 * #Celebrate Shieh
 *             ,%%%%%%%%,
 *           ,%%/\%%%%/\%%
 *          ,%%%\c "" J/%%%
 * %.       %%%%/ o  o \%%%
 * `%%.     %%%%    _  |%%%
 *  `%%     `%%%%(__Y__)%%'
 *  //       ;%%%%`\-/%%%'
 * ((       /  `%%%%%%%'
 *  \\    .'          |
 *   \\  /       \  | |
 *    \\/         ) | |
 *     \         /_ | |__
 *     (___________))))))) 攻城湿
 *
 *        _       _
 * __   _(_)_   _(_) __ _ _ __
 * \ \ / / \ \ / / |/ _` |'_ \
 *  \ V /| |\ V /| | (_| | | | |
 *   \_/ |_| \_/ |_|\__,_|_| |_|
 */

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('users_info', function ( Blueprint $table ) {
            $table->increments('id');
            $table->string('uid')->nullable()->comment('用户id');
            $table->string('rename')->nullable()->comment('真实姓名');
            $table->string('username')->nullable()->comment('昵称');
            $table->string('card')->nullable()->comment('身份证');
            $table->text('content')->nullable()->comment('备注');
            $table->string('avatar')->nullable()->comment('头像');
            $table->string('province')->nullable()->comment('省');
            $table->string('QRCode')->nullable()->comment('邀请二维码');
            $table->string('code')->nullable()->comment('邀请码');
            $table->string('city')->nullable()->comment('市');
            $table->string('area')->nullable()->comment('区');
            $table->integer('frequency')->default(0)->comment('登录次数');
            $table->string('openid')->nullable()->comment('微信id');
            $table->string('birthday')->nullable()->comment('出身日期');
            $table->string('year')->nullable()->comment('年');
            $table->string('month')->nullable()->comment('月');
            $table->string('day')->nullable()->comment('日');
            $table->string('zodiac')->nullable()->comment('生肖');
            $table->string('constellation')->nullable()->comment('星座');
            $table->string('github')->nullable()->comment('github id');
            $table->boolean('sex')->default(1)->comment('男女：1男');
            $table->boolean('editor')->default(1)->comment('1：Markdown，2：UEditor');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('users_info');
    }
}
